<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUserTeamsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
        //团队成员
        Schema::create('user_teams', function(Blueprint $table)
        {
            $table->increments('id');                       //编号
            $table->unsignedInteger('user_id')->nullable(); //用户标识
            $table->string('real_name');                    //成员姓名
            $table->integer('photo_id')->default(0);            //成员头像id
            $table->string('position')->nullable();                     //职位
            $table->string('school')->nullable();                       //毕业学校
            $table->string('province')->nullable();                     //所在省份
            $table->string('city')->nullable();                         //所在城市
            $table->text('profile')->nullable();                        //个人简介
            $table->string('wechat')->nullable();                       //微信
            $table->string('weibo')->nullable();                        //微博
            $table->string('maimai')->nullable();                       //脉脉
            $table->integer('status')->default(0);          //审核状态
            $table->timestamp('check_time')->nullable();                //审核时间
            $table ->integer('is_founder')->nullable();     //是否是创始人
            $table->softDeletes();
            $table->timestamps();
        });
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('user_teams');
	}

}
